# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=xwallpaper
pkgver=0.7.5
pkgrel=0
pkgdesc="wallpaper setting utility for X"
url="https://github.com/stoeckmann/xwallpaper"
arch="all"
license="ISC"
makedepends="
	autoconf
	automake
	libjpeg-turbo-dev
	libpng-dev
	libseccomp-dev
	libxpm-dev
	pixman-dev
	xcb-util-image-dev
	"
options="!check" # no test suite
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/stoeckmann/xwallpaper/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
241fcca85db3dbdc5fb50b779c8b384441d9f5644fde633897d752f42a353002741c484291887a724bc427227efbea876db8a63748212d43f4536053e1b0f0bd  xwallpaper-0.7.5.tar.gz
"
